package com.java.system.common.enums;

/**
 * @ClassName: ResultEnums
 * @Description:
 * @Version: v1.0.0
 * @Author: Shan Feiyang
 * @Date: 2019/6/13 8:56
 * Modification History:
 * Date           Author           Version     Description
 * -------------------------------------------------------------
 * 2019/6/13      Shan Feiyang        v1.0.0         创建
 */
public enum ResultEnums {

    USERNAME_EXIST_ERROR(1000, "user_exist"),

    ROLENAME_EXIST_ERROR(1001, "role_has_exist"),

    ROLETYPE_PERMISSION_ERROR(1002, "role_permission"),

    USER_NOTEXIST(1003, "user_not_exist"),

    ROLE_NOTEXIST(1004, "operate_role"),

    ROLETYPE_NOT_NULL(1005, "role_type"),

    COID_NOT_NULL(1006, "company_id"),

    ROLE_NOTEXIST_ERROR(1007, "role_exist"),

    COMPANY_NOT_MATCH(1008, "company_match"),

    PASSWORD_SAME_ERROR(1009, "password_same"),

    POSITION_EXIST_ERROR(1010, "position_has_exist"),

    ORGANIZATION_EXIST_ERROR(1011, "organization_has_exist"),

    FILETYPE_ERROR(2000, "file_type"),

    FILECONTENT_ERROR(2001, "file_error"),

    ROLE_MODITFY_NORIGHT(2002, "role_modify"),

    ROLE_DELETE_NORIGHT(2003, "role_delete"),

    ROLE_CHANGERESOURCE_NORIGHT(2004, "change_role_right"),

    ROLE_COMPANY_NOTSAME(2005, "company_notsame"),

    RESOURCE_CODE_EXIST(2006, "resource_code_exist"),

    CLIENT_NOTEXIST(3000, "client_not_exist"),

    CLIENTID_EXIST(3001, "clientId_exist");
    private Integer code;

    private String msg;

    ResultEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
